<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ONLYOFFICE Integration</title>
</head>
<body>
    <h1>Upload and Edit Document</h1>
    <form method="post" enctype="multipart/form-data">
        <input type="file" name="file">
        <button type="submit">Upload</button>
    </form>
    {% if doc_url %}
        <h2>Edit Document</h2>
        <iframe src="{{ doc_url }}" width="100%" height="600px"></iframe>
    {% endif %}
</body>
</html>
